import babelpolyfill from 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import store from './state/store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import VueRouter from 'vue-router'
import routes from './routes'
import axios from 'axios'
import $axios from './util/axios'
import Viewer from 'viewerjs';
import './util/tools.js';

Vue.use(ElementUI)
Vue.use(VueRouter)
Vue.prototype.axios = axios; 
window.axios = $axios;

Vue.prototype.$Viewer = Viewer;
const router = new VueRouter({
    routes
})

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
});

